import { EntityModel } from '@midwayjs/orm';
import { Column, PrimaryGeneratedColumn } from 'typeorm';

@EntityModel('bs_province')
export class BsProvinceEntity {
  @PrimaryGeneratedColumn()
  PROVINCE_ID: number;

  @Column({ length: 40, comment: '省份代码' })
  PROVINCE_CODE: string;

  @Column({ length: 50, comment: '省份名称' })
  PROVINCE_NAME: string;

  @Column({ length: 20, comment: '简称' })
  SHORT_NAME: string;

  @Column({ length: 20, comment: '经度', default: null })
  LNG: string;

  @Column({ length: 20, comment: '纬度', default: null })
  LAT: string;

  @Column({ type: 'int', comment: '排序', default: null })
  SORT: number;

  @Column({ type: 'datetime', comment: '创建时间', default: null })
  GMT_CREATE: Date;

  @Column({ type: 'datetime', comment: '更新时间', default: null })
  GMT_MODIFIED: Date;

  @Column({ length: 250, comment: '备注', default: null })
  MEMO: string;

  @Column({ type: 'int', comment: '状态', default: null })
  DATA_STATE: number;

  @Column({ length: 32, comment: '租户ID', default: null })
  TENANT_CODE: string;
}
